<template>
	<div 
		class="nav-back"
		@click="back">
		<span class="cuIcon-back nav-back__icon">
		</span>
		<span class="nav-back__text">
			返回
		</span>
	</div>
</template>

<script>
    export default {
        data() {
            return {

            }
        },
		methods: {
			back() {
				uni.navigateBack()
			}
		}
    }
</script>

<style lang="scss" scoped>
	.nav-back {
		width: 90%;
		display: flex;
		align-items: center;
		margin-bottom: 30px;
		
		&__icon {
			font-size: 2rem;
			margin-right: 10px;
		}
		&__text {
			font-size: 1.2rem;
		}
	}
</style>


